module.exports = app => {
    const { DATE, INTEGER ,DECIMAL} = app.Sequelize;

    const Account = app.model.define('t_account', {
        id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
        user_id: {type:DECIMAL(20)},
        account:{type:DECIMAL(20),'allowNull': false},
        ImageUridate: {type:DATE ,'allowNull': false},
        type: {type:DECIMAL(1),'allowNull': false},
    }, {
        timestamps: false,  //去除createAt updateAt
        freezeTableName: true,  //使用自定义表名
    })
    return Account;
};